package com.steakliu.sun.client.netty.manager;

import io.netty.channel.Channel;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 功能说明：
 * <p>
 * Original @Author: steakliu-刘牌, 2023-02-01  17:17
 * <p>
 * Copyright (C)2020-2022  steakliu All rights reserved.
 */
public class ClientConnectionsManager {

    private static final Logger LOGGER = LoggerFactory.getLogger(ClientConnectionsManager.class);

    public static void remove(Channel channel){
        LOGGER.error("移除handler------------------------------------------------");
        channel.close();
        //清除ClientHandler
        ClientHandlerCacheManager.remove(channel);
    }
}
